import {commonParams} from "./config";

export function  searchProduct(http,x,y,key,offset,orderBy) {

  const url = "http://localhost:8080/searchPro";

  const data = Object.assign({},commonParams,{
    offset: offset,
    // limit: 15,
    keyword: key,
    latitude: x,
    longitude: y,
    order_by: orderBy
    // search_item_type: 3,
    // is_rewrite: 1,
    // terminal: 'h5',
  })

  return http.get(url,{params:data});
}
